864 links
  • Links Lounge
  • Home
  • Login
  • RSS Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
1 results tagged QSpinBox x
  • Qt Tips (01): Enlarge Spin box | Software & Hardware: Hand in Hand

    Luckily, the spin box appearance can be changed by Style Sheet.

    To get “Wheel Diameter” style spin box, use following style sheet:

    QSpinBox { border: 3px inset grey; }

    QSpinBox::up-button { subcontrol-position: left; width: 40px; height: 35px;}

    QSpinBox::down-button { subcontrol-position: right; width: 40px; height: 35px;}

    To get “Pulses per Revolution” style spin box, use following style sheet:

    QSpinBox { border: 3px outset grey;padding-right: 40px;}

    QSpinBox::up-button { subcontrol-position: right; right: 40px; width: 40px; height: 35px;}

    QSpinBox::down-button { subcontrol-position: right; width: 40px; height: 35px;}

    To get “Count” style spin box, use following style sheet:

    QSpinBox { border: 3px groove gray}

    QSpinBox::up-button { subcontrol-position: top right; width: 40px; height: 19px;}

    QSpinBox::down-button { subcontrol-position: bottom right; width: 40px; height: 19px;}

    Mon Dec 11 14:01:23 2017 - permalink -
    - - - http://mmcircuit.com/qt-tips-01-enlarge-spin-box/
    QSpinBox Qt
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, no-database delicious clone by the Shaarli community - Help/documentation